﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        #toolbar a {
            text-decoration: underline;
            cursor: pointer;
            margin-left: 10px;
        }
    </style>
    <link href="../Resource/CSS/site.css" rel="stylesheet" />
    <link href="../Resource/CSS/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />
    <script src="../Resource/JS/Lib/jquery-1.10.2.js"></script>
    <script src="../Resource/JS/Lib/jquery-ui-1.10.4.custom.min.js"></script>
    <script src="../Resource/JS/Share/SPA.js"></script>
    <script src="../Resource/JS/Module/Person/person.js"></script>
    <script src="../Resource/JS/Module/Book/book.js"></script>
    <script src="../Resource/JS/Share/action.js"></script>
    
</head>
<body>
    <div include="Share/Header.html"></div>
    <div id="content_container"></div>
    <div id="footer" include="Share/Footer.html"></div>
</body>
</html>
<script>
    var _container = document.getElementById("content_container");
    var serverURL = "../Services/Server.aspx";
    var _includeHelper = new IncludeHelper();
    var _processPerson = new processPerson();
    var _processBook = new ProcessBook();
    var _historyHelper = new HistoryHelper();
    var _controller = new Controller();
    _includeHelper.init();

    _controller.registerAction(new GetPersonListAction());
    _controller.registerAction(new AddPersonAction());
    _controller.registerAction(new EditPersonAction());
    _controller.registerAction(new DeletePersonAction());
    _controller.registerAction(new GetDetailAction());
    _controller.registerAction(new GetBookListAction());
    _controller.registerAction(new Chat());

    $(function () {
        var url = window.location.search;
        _controller.restoreAction(url);
    })
</script>
